const Koa = require('koa')
const app = new Koa();

app.use(async ctx => {
	let _html = '404 NotFound'
	switch (ctx.url) {
		case '/':
			_html = 'home index'
			break;
		case '/about':
			_html = 'about page'
			break;
		case '/list':
			_html = 'list page'
			break;
		default:
			break;
	}
	ctx.body = _html;
})
app.listen(9999)
